<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="./plugin/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="./layui/css/layui.css">
    <link rel="stylesheet" href="./css/index.css" rel="stylesheet">
    <link rel="shortcut icon" href="img/logo.png" type="image/x-icon">
</head>

<body>
    <div id="preLoading" class="pre-loading">
        <div class="spinner">
            <div class="rect1 layui-bg-normal"></div>
            <div class="rect2 layui-bg-normal"></div>
            <div class="rect3 layui-bg-normal"></div>
            <div class="rect4 layui-bg-normal"></div>
            <div class="rect5 layui-bg-normal"></div>
        </div>
    </div>
</body>
<!--    Ueditor卡顿问题，后续需要替换成懒加载模式（在ueditor part中进行动态判断和加载）-->
<!--<script src="./plugin/ueditor-1.4.3.3/ueditor.config.js"></script>-->
<!--<script src="./plugin/ueditor-1.4.3.3/editor_api.js"></script>-->
<script src="./plugin/xm-select.js"></script>
<script src="./layui/layui.js"></script>

<!--用到的地方再引入，这玩意吃资源-->
<!-- <script src="./plugin/aliyun/dist/aliyun-oss-sdk.min.js"></script> -->

<script>
    layui.config({
        //模块根目录
        base: './module/',
        debug: true,
        mock: true
    }).use(['process', 'conf', 'view'], async function () {

        const { process, conf, view } = layui;

        var route = process.route();

        process.launch(route);

        //刷新地址上的Hash
        location.hash = route;

        if (route === conf.view.login) {
            parent.layui.view.render(route);
        } else {
            view.render(route);
        }

    });
</script>

</html>